<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Service/index')}">服务列表</a></li>
			<li><a href="{:U('Service/add')}">添加服务</a></li>
		</ul>
        <div>
            ***删除分类会使分类下的服务变为其他分类，请谨慎操作***
        </div>
        <br/>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>服务名称</th>
						<th>父服务名称</th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="services" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.pname}</td>
						<td>
							<php>if($vo['id']>6){</php>
                                <a href="{:U('Service/edit',array('id'=>$vo['id']))}">编辑</a> |
                                <a href="{:U('Service/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
							<php>}</php>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>